home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
thor25_arexx.lha
/
Edge
/
ASCIIPic.edge
next >
Wrap
Text File
|
1996-01-13
|
845b
|
35 lines
/* ASCIIPic.edge
** $VER: ASCIIPic.edge v1.1 (11.01.96)
** Original script by Troels Walsted Hansen
** Convert picture to ASCII and include it in EDGE. Uses
** 'ilbm2ascii' v1.4 by Tobias Ferber.
*/
options results
/* needs EDGE functions */
if(substr(address(),1,4) ~= "EDGE") then
do
say "This script should only be started from inside EDGE."
exit 20
end
else edgeport = address()
/* request a filename, convert to ascii and include in EDGE */
address(edgeport)
REQUESTFILE title '"Select ILBM to convert and include:"'PATH '"SD0:"'
picfile=result
if(rc ~= 0) then exit
lastchar = right(picfile,1)
if(rc ~= 0 | lastchar = "/" | lastchar = ":" | picfile = "") then exit
address command "run >nil: ilbm2ascii "||'"'picfile'"'||" >t:EDGEASCIIPicture"
INCLUDE "t:EDGEASCIIPicture"
address command "delete >nil: t:EDGEASCIIPicture"
exit